#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	char arr1[] = "xiaochen@163.com";
	char arr2[50] = { 0 };
	strcpy(arr2, arr1);
	/*char* p = strtok(arr2, "@.");
	printf("%s\n", p);*/
	for (char* p = strtok(arr2, "@."); p != NULL;p= strtok(NULL, "@."))
	{
		printf("%s\n", p);
	}
	return 0;
}